package com.lhk.appframework.presenter.login;

import com.lhk.appframework.MyApplication;
import com.lhk.appframework.engine.login.CallbackEngineLogin;
import com.lhk.appframework.engine.login.EngineUserLogin;
import com.lhk.appframework.factory.FactoryAppDefault;
import com.lhk.appframework.manager.ManagerNetPacketRequest;
import com.lhk.appframework.presenter.BasePresenter;

import android.content.Context;

public class ImplPresenterLogin extends BasePresenter implements PresenterLogin{

	private Context context;
	


	@Override
	public void onLogin() {
//		ManagerNetPacketRequest mnpr = FactoryAppDefault.getInstance().g;
		
		EngineUserLogin el = MyApplication.getInstance().getFactoryApp().getFactoryEngine().createEngineUserLogin();
		String userId = null;
		String passwd = null;
		el.userLogin(context, userId, passwd, new CallbackEngineLogin() {
			
			@Override
			public void onSuccess(Object object) {
				
			}
			
			@Override
			public void onFailure(Object object) {
				
			}
		});
	}



	@Override
	public void work() {
		// TODO Auto-generated method stub
		
	}

}
